
import Mock from 'mockjs'
 
// 然后定义伪数据
// (小示例，下方精华里有具体定义步骤)
Mock.mock("http://localhost:8080/#/admin/shop/writeoff", Mock.mock({
        "data|20":[{
            num: /^\d+$/,
            name:"@cname",
            "shopname":'@city()'+ '@cname()' + '分店',
            tnum: /^\d+$/,
            id:"@id",
            data:/^(?:1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/,
            write:"部分核销"
        }]
    })
)


Mock.mock("http://localhost:8080/#/admin/shop/organizationList","get",function(){
    return Mock.mock({
        "label|3":[
            {   
                "number|1-100": 100,
                "id|+1":100,
                "name":"九龙商场",
                "oparate_area":"东三街",
                "type":'全天',
                "streat":"优龙路口",
                "open_time":"8:00-20:00",
                "delevery_type":"自提"
            }
        ]
    })
})
